package com.app.miwawa.api.eam.entity.view;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * 学员课程视图（查询学员所在班级、课程及合同）
 * <p>描述: 教务管理</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年2月10日 下午12:49:50
 * @version 1.0.2016
 */
@Entity @Table(name = "vb_student_lesson")
public class StudentLesson extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -7494431282129865859L;
	
	// contract student
	private String contractId;
	
	private String customerId;
	
	private String studentId;
	
	private String student;
	
	private String nickname;
	
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date   birthday;
	
	private String moonage;
	
	// contract parent
	private String parentId;
	
	private String parent;
	
	private String mobile;
	
	private String relation;
	
	// contract buy
	private String item;
	
	private String type;
	
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date   fromDate;
	
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date   overDate;
	
	private String totals;
	
	private String buying;
	
	private String giving;
	
	private String useing;
	
	private String rested;
	
	private String leavelimitId;

	private String toplimit;
	
	private String toprested;
	
	private String totalsPrice;
	
	private String useingPrice;
	
	private String restedPrice;
	
	// classes
	private String classes;
	
	private String classesId;
	
	// check & leave
	private String checkId;
	
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date   checkDate;
	
	private String checkDetail;

	public String getContractId() {
		return contractId;
	}

	public void setContractId(String contractId) {
		this.contractId = contractId;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public String getStudent() {
		return student;
	}

	public void setStudent(String student) {
		this.student = student;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getMoonage() {
		return moonage;
	}

	public void setMoonage(String moonage) {
		this.moonage = moonage;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getFromDate() {
		return fromDate;
	}

	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}

	public Date getOverDate() {
		return overDate;
	}

	public void setOverDate(Date overDate) {
		this.overDate = overDate;
	}

	public String getTotals() {
		return totals;
	}

	public void setTotals(String totals) {
		this.totals = totals;
	}

	public String getBuying() {
		return buying;
	}

	public void setBuying(String buying) {
		this.buying = buying;
	}

	public String getGiving() {
		return giving;
	}

	public void setGiving(String giving) {
		this.giving = giving;
	}

	public String getUseing() {
		return useing;
	}

	public void setUseing(String useing) {
		this.useing = useing;
	}

	public String getRested() {
		return rested;
	}

	public void setRested(String rested) {
		this.rested = rested;
	}
	
	
	public String getLeavelimitId() {
		return leavelimitId;
	}

	public void setLeavelimitId(String leavelimitId) {
		this.leavelimitId = leavelimitId;
	}

	public String getToplimit() {
		return toplimit;
	}

	public void setToplimit(String toplimit) {
		this.toplimit = toplimit;
	}

	public String getToprested() {
		return toprested;
	}

	public void setToprested(String toprested) {
		this.toprested = toprested;
	}

	public String getTotalsPrice() {
		return totalsPrice;
	}

	public void setTotalsPrice(String totalsPrice) {
		this.totalsPrice = totalsPrice;
	}

	public String getUseingPrice() {
		return useingPrice;
	}

	public void setUseingPrice(String useingPrice) {
		this.useingPrice = useingPrice;
	}

	public String getRestedPrice() {
		return restedPrice;
	}

	public void setRestedPrice(String restedPrice) {
		this.restedPrice = restedPrice;
	}

	public String getClasses() {
		return classes;
	}

	public void setClasses(String classes) {
		this.classes = classes;
	}

	public String getClassesId() {
		return classesId;
	}

	public void setClassesId(String classesId) {
		this.classesId = classesId;
	}

	public String getCheckId() {
		return checkId;
	}

	public void setCheckId(String checkId) {
		this.checkId = checkId;
	}

	public Date getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}

	public String getCheckDetail() {
		return checkDetail;
	}

	public void setCheckDetail(String checkDetail) {
		this.checkDetail = checkDetail;
	}
}
